<%--
    Document   : aa
    Created on : 25/03/2013, 21:02:07
    Author     : Max
    Description: Esse documento JSP é utilizado para
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    UsuarioExterno user = (UsuarioExterno) session.getAttribute("user");
    if (user!=null){
    %>
<html>
    <head>
        <%@include file="interfaceHead.jsp" %>
    </head>
    <body>
        <div id="container">
            <%@include file="interfaceHeader.jsp" %>
            <div id="main">
                <%@include file="interfaceBanner.jsp" %>
                <section class="content">
                    <h1>Alterar Senha</h1>
                    <section class="formInfo">
                        <h2>Informação</h2>
                        <p>Você pode alterar sua senha a qualquer momento que desejar.</p>
                    </section>
                    <form action="externo" method="post"
                          onsubmit="return formValidation(this)"
                          novalidate>
                        <fieldset>
                            <p>
                                <label for="oldPassword">Senha antiga</label><br/>
                                <input type="password" name="oldPassword" value="" id="oldPassword"
                                       class="password required"
                                       placeholder="Insira sua antiga senha"
                                       />
                            </p>
                            <p>
                                <label for="newPassword">Nova Senha</label><br/>
                                <input type="password" name="newPassword" value="" id="newPassword"
                                       class="password required confirmation"
                                       placeholder="Insira sua nova senha"
                                       />
                            </p>
                            <p>
                                <label for="newPasswordConfirmation">Confirmação da nova senha</label><br/>
                                <input type="password" name="newPasswordConfirmation" value="" id="newPasswordConfirmation"
                                       class="password required"
                                       placeholder="Insira novamente sua senha"
                                       />
                            </p>
                            <p class="buttons">
                                <button type="submit" name="operacao" value="updateSenha"
                                        class="button">
                                    Atualizar
                                </button>
                            </p>
                        </fieldset>
                    </form>
                </section>
            </div>
            <%@include file="interfaceFooter.jsp" %>
        </div>
    </body>
</html>
<%
    } else {
        response.sendRedirect("/cipem");
    }
%>

